export const getNowTime = () => {
  //获取当前时间
  const day = new Date()
  const year = day.getFullYear()
  const month = day.getMonth() + 1 < 10 ? '0' + (day.getMonth() + 1) : day.getMonth() + 1
  const date = day.getDate() < 10 ? '0' + day.getDate() : day.getDate()
  const hour = day.getHours() < 10 ? '0' + day.getHours() : day.getHours()
  const minu = day.getMinutes() < 10 ? '0' + day.getMinutes() : day.getMinutes()
  const sec = day.getSeconds() < 10 ? '0' + day.getSeconds() : day.getSeconds()

  return `${year}-${month}-${date} ${hour}:${minu}:${sec}`
}
